<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:p="http://primefaces.prime.com.tr/ui"
    xmlns:composite="http://java.sun.com/jsf/composite">


    <composite:interface shortDescription="renderiza label e input do tipo obrigatório"><!--futuramente colocar decorator - tipo seam:decorate -->

      <composite:attribute name="value" required="true"  />
      <composite:attribute name="for"  />
      <composite:attribute name="required"  />
      <composite:attribute name="rendered"  />
      <composite:attribute name="style"  />


  </composite:interface>

    <composite:implementation>
        <div style="display: inline">
            <span style="float: right">
                <h:outputLabel for="#{cc.attrs.for}" rendered="#{cc.attrs.rendered}" value="#{cc.attrs.value}" style="#{cc.attrs.style}"/> <!-- compatibility IE -->
                <h:outputText value="*" style="color:red" rendered="#{cc.attrs.required and cc.attrs.rendered}"/>
            </span>
        </div>
    </composite:implementation>



</html>


